package com.acme.domain.usermap;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import com.acme.domain.Order;

public class UsersOrder {

	static Map<String,Set<Order>> userMap = new HashMap<String,Set<Order>>();
	
	public static void createUser(String username){
		userMap.put(username, new HashSet<Order>());
	}
	
	public static void addOrderToUser(String username, Order o){
		userMap.get(username).add(o);
	}
	
	public static void deleteUserOrder(String username, Order o){
		userMap.get(username).remove(o);
	}
}
